package com.niit.order.service.impl;

import com.niit.order.mapper.OrderMapper;
import com.niit.order.pojo.Order;
import com.niit.order.service.IOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author yaojianfeng
 */
@Service("onlyOrder")
public class OnlyOrderServiceImpl implements IOrderService {
    @Autowired
    private OrderMapper orderMapper;
    @Override
    public Order queryOrderById(Long orderId) {
        return orderMapper.findById(orderId);
    }
}
